/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Mobile;

/**
 *
 * @author Javinel
 */
public class ThreadInterleaving implements Runnable{
    
    private Mobile mobile;
    
    public Mobile getMobile() {
        return mobile;
    }

    public void setMobile(Mobile mobile) {
        this.mobile = mobile;
    }
    

    @Override
    public void run() {
        while(true){
            while(mobile.getStateMobile()==1){
                System.out.println("mobile "+mobile.getId()+" interleaving en cours");
            }
        }
    }
    
    public ThreadInterleaving(Mobile m){
        this.mobile=m;
    }
    
}
